<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //生成随机数
    // console.log(Math.random())
    // //向上取整
    // console.log(Math.ceil(1.9))
    // //向下取整
    // console.log(Math.floor(2.9)) 
    // //找最大数
    // let arr = [1, 2, 3, 4, 5]
    // console.log(Math.max(...arr))
    //找最小值
    // let arr = [1, 2, 3, 4, 5]
    // console.log(Math.min(...arr))

    // console.log(Math.abs(-1))

    //随机数
    // console.log(Math.random() * 11)

    // console.log(Math.floor(Math.random() * 11))

    // console.log(Math.ceil(Math.random() * 10))


    // console.log(Math.floor(Math.random() * 6 + 5))

    console.log(Math.ceil(Math.random() * 10 + 5))
  </script>
</body>

</html>